#pragma once
#pragma once
#include "DetectDataTab.h"
#include <QtWidgets/QtWidgets>
#include "ui_DataPageWd.h"
#include "utils/util.h"
#include "AsyncDBManager.h"
#include "ImageDataTab.h"


class DataPage : public QWidget
{
	Q_OBJECT
public:
	DataPage(AsyncDBManager* dbManager_);
	void updateCurUserInfo(UserInfo user);
	void updateProducts();
private:
	Ui::dataPage ui;
	AsyncDBManager*   asyncDBManager;
	UserInfo curUser;
	std::shared_ptr<ImageDataTab> imageDataTab;
	std::shared_ptr<DetectDataTab> detectDataTab;
	bool hasUserLogin;
};
